#include"dlinklist.h"
#include<stdio.h>
int main(int argc, char const *argv[])
{
    dlinklist head = init_list();
    int num;
    scanf("%d", &num);
    for(int i = 1; i <= num; i++){
        dlist_add_tail(head, new_node(i));
    }
    dlist_for_each(head);
    
    return 0;
}
